package com.cy.device.rpc;

import com.cy.swpc.common.cabinetServiceManage.api.PinholeCameraAPI;
import com.cy.swpc.common.cabinetServiceManage.dto.PinholeImgInfo;
import com.cy.swpc.common.domain.common.ServiceId;
import com.cy.swpc.common.domain.model.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = ServiceId.CABINET_SERVICE_MANAGE)
public interface PinholeCameraImgFeignClient {

    /**
     * 上传图片
     *
     * @param pinholeImgInfo
     * @return
     */
    @PostMapping(value = PinholeCameraAPI.BASE_URL + PinholeCameraAPI.UPLOAD_IMG)
    ResultResponse uploadImg(@RequestBody PinholeImgInfo pinholeImgInfo);
}